<template>
  <div>
    <el-row :gutter="8">
      <el-col v-for="(item,index) in dataSource" :key="index" :span="4">
        <el-card class="oneCard">
          <div>
            <div>
              <!-- <h1>{{ item.total}}</h1> -->
              <el-link :type="item.totalColor" :underline="false">{{ item.total }}</el-link>
              <h2>{{ item.name }}</h2>
            </div>
            <div><svg-icon :icon-class="item.icon" /></div>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>

export default {
  name: 'Card',
  components: {
    //
  },
  props: {
    dataSource: {
      type: Array,
      default: function() {
        return []
      }
    }
  },
  data() {
    return {
      //
    }
  },
  methods: {
    cardLink(item) {
      this.$emit('on-cardLink', item)
    }
  }
}
</script>

